import request from '@/utils/request'

// 查询无人机检测路径列表
export function listAidrone(query) {
  return request({
    url: '/ai/aidrone/list',
    method: 'get',
    params: query
  })
}

// 查询无人机检测路径详细
export function getAidrone(id) {
  return request({
    url: '/ai/aidrone/' + id,
    method: 'get'
  })
}

// 新增无人机检测路径
export function addAidrone(data) {
  return request({
    url: '/ai/aidrone',
    method: 'post',
    data: data
  })
}

// 修改无人机检测路径
export function updateAidrone(data) {
  return request({
    url: '/ai/aidrone',
    method: 'put',
    data: data
  })
}

// 删除无人机检测路径
export function delAidrone(id) {
  return request({
    url: '/ai/aidrone/' + id,
    method: 'delete'
  })
}
